package ${package.ServiceImpl};

import com.github.pagehelper.PageHelper;
import com.github.pagehelper.PageInfo;
import ${package.Entity}.${entity};
import ${package.Vo}.${vo};
import ${package.Mapper}.${table.mapperName};
import ${package.Service}.${table.serviceName};
import ${superServiceImplClassPackage};
import org.springframework.stereotype.Service;

/**
 * <p>
 * ${table.comment!} 服务实现类
 * </p>
 *
 * @author ${author}
 * @since ${date}
 */
@Service
<#if kotlin>
open class ${table.serviceImplName} : ${superServiceImplClass}<${table.mapperName}, ${vo}>(), ${table.serviceName} {

}
<#else>
public class ${table.serviceImplName} extends ${superServiceImplClass}<${table.mapperName}, ${entity}> implements ${table.serviceName} {

    @Override
    public PageInfo<${vo}> select${vo}Page(${vo} ${vo?uncap_first}, int pageNum, int pageSize) {
        return PageHelper.startPage(pageNum, pageSize)
            .doSelectPageInfo(() -> baseMapper.select${vo}List(${vo?uncap_first}));
    }
}
</#if>
